package com.guomei.bean.curse.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.guomei.bean.User;
import com.guomei.bean.curse.Course;

import lombok.Data;

/**
 * 用户-招生老师-课程关系VO
 */
@Data
public class UserDistributorCourseRelVo {
    
    private Long id;

    /**
     * 学生ID
     */
    private Long studentId;

    /**
     * 招生老师ID
     */
    private Long distributorId;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 分销比例(%)
     */
    private BigDecimal distributionRatio;

    /**
     * 状态(0-无效,1-有效)
     */
    private Short status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updatedTime;

    /**
     * 学生信息
     */
    private User student;

    /**
     * 招生老师信息
     */
    private User distributor;

    /**
     * 课程信息
     */
    private Course course;
}
